//package com.wangyg.breadstore.configuration;
//
//import com.netflix.loadbalancer.IRule;
//import com.netflix.loadbalancer.RoundRobinRule;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * Created by wangyg6 on 2019/5/20 16:19.
// */
//@Configuration
//public class RibbonLoadBalanceRule {
//	@Bean
//	//此处的配置优先级高于yml中定义。
//	public IRule ribbonRule() {
////		return new BestAvailableRule();//这里配置策略，和配置文件对应
//		return new RoundRobinRule();
////		return new RandomRule();
////		return new ZoneAvoidanceRule();
////		return new AvailabilityFilteringRule();
//	}
//}
